package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffSimpleEvaScoreSystemDto
 * @使用场景
 */
@Data
public class BffSimpleEvaScoreSystemDto implements Serializable {

    /**
     * 等级ID
     */
    @ApiModelProperty("等级ID")
    private String gradeId;

    /**
     * 等级标识
     */
    @ApiModelProperty("等级标识")
    private String gradeCode;

    /**
     * 等级图标
     */
    @ApiModelProperty("等级图标")
    private String gradeIcon;

    /**
     * 等级分值
     */
    @ApiModelProperty("等级分值")
    private String gradeScore;

    /**
     * 等级别名
     */
    @ApiModelProperty("等级别名")
    private String gradeNickName;
    /**
     * 评分单位
     */
    @ApiModelProperty("评分单位")
    private String scoreUnit;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffSimpleEvaScoreSystemDto that = (BffSimpleEvaScoreSystemDto) o;
        return gradeId == that.gradeId && gradeCode == that.gradeCode && gradeIcon == that.gradeIcon && gradeScore == that.gradeScore && gradeNickName == that.gradeNickName && scoreUnit == that.scoreUnit;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), gradeId, gradeCode, gradeIcon, gradeScore, gradeNickName, scoreUnit);
    }

}
